home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / pbm / pbm_man.zoo / man1 / pbmreduce.1 < prev    next >
Text File  |  1994-08-27  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. pbmreduce(1)             USER COMMANDS               pbmreduce(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      pbmreduce - read a portable bitmap and reduce it N times
  10.  
  11. SYNOPSIS
  12.      pbmreduce [-floyd|-fs|-threshold [-value _✓v_✓a_✓l] _✓N [_✓p_✓b_✓m_✓f_✓i_✓l_✓e]
  13.  
  14. DESCRIPTION
  15.      Reads a portable bitmap as input.  Reduces it by a factor of
  16.      _✓N, and produces a portable bitmap as output.
  17.  
  18.      _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e duplicates a lot of the functionality of _✓p_✓g_✓m_✓t_✓o_✓p_✓b_✓m;
  19.      you  could  do  something  like  pnmscale  |  pgmtopbm,  but
  20.      _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e is a lot faster.
  21.  
  22.      _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e can be used to "re-halftone" an image.  Let's  say
  23.      you  have  a  scanner  that  only  produces black&white, not
  24.      grayscale, and it does a terrible job  of  halftoning  (most
  25.      b&w  scanners  fit  this  description).   One way to fix the
  26.      halftoning is to scan at the  highest  possible  resolution,
  27.      say  300  dpi,  and  then  reduce by a factor of three or so
  28.      using _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e.  You can even correct the brightness of  an
  29.      image, by using the -value flag.
  30.  
  31. OPTIONS
  32.      By default, the halftoning after the reduction is  done  via
  33.      boustrophedonic  Floyd-Steinberg  error  diffusion; however,
  34.      the -threshold flag can be used to specify simple threshold-
  35.      ing.  This gives better results when reducing line drawings.
  36.  
  37.      The -value flag alters the thresholding value for all quant-
  38.      izations.   It  should  be  a  real  number between 0 and 1.
  39.      Above 0.5 means darker images; below 0.5 means lighter.
  40.  
  41.      All flags can be abbreviated to their shortest  unique  pre-
  42.      fix.
  43.  
  44. SEE ALSO
  45.      pnmenlarge(1), pnmscale(1), pgmtopbm(1), pbm(5)
  46.  
  47. AUTHOR
  48.      Copyright (C) 1988 by Jef Poskanzer.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.0    Last change: 02 August 1989                  1
  64.  
  65.  
  66.  
  67.